Flash Article

Integrating Video into Macromedia Flash


Table of Contents

  1. Introduction
  2. Embedding Video Directly in a Flash Document
  3. Importing Video into a Flash document
  4. Using Flash Media Components
  5. Adding Streaming Media to a Media Component
  6. Using the Component Inspector
  7. Streaming Media File Formats
  8. Streaming Video

Importing Video into a Flash document

To import video into a SWF, follow these steps:

  1. Create a new Flash file by clicking File > New.
  2. Import video to the library:

    • Select File > Import > Import to Library and select cyclers.mov from the directory that you unzipped the files to.
    • Select Embed video in the Macromedia Flash document in the wizard and go to the next screen.
    • Select Import the Entire Video and go to the next screen.
    • Leave the Compression Profile at its default setting and select Finish to import the video to the library.
  3. Embed video into a MovieClip:

    • Create a MovieClip symbol and name it mcVideo.
    • Remain in mcVideo’s Timeline and drag an instance of cyclers.mov from the library to the Stage.
    • Select Yes in the dialog box to extend the MovieClip’s Timeline to the length of the video.
  4. Add the MovieClip to the main document:

    • Return to the main document’s Timeline.
    • Drag an instance of mcVideo from the library to the Stage.
    • Define the following properties for the MovieClip instance:
      • Instance name: video_mc
      • Width: 190
      • Height:130
  5. Save and test the application:

    • Save and test the application to view the video.
    • Choose View > Bandwidth Profiler and note the file size
    • Close the SWF and FLA.